<?php

abstract class Model
{
	protected $db;

	final public function __construct()
	{
		require_once 'php/lib/Database.php';
		$this->db = new Database();
		$this->db->Open();
	}

	final public function __destruct()
	{
		$this->db->Close();
	}
}
